package question

func CorpFlightBookings(bookings [][]int, n int) []int {
	bookingsLen := len(bookings)
	answer := make([]int, n)
	for i := 0; i < bookingsLen; i++ {
		for j := bookings[i][0]; j <= bookings[i][1]; j++ {
			answer[j-1] = answer[j-1] + bookings[i][2]
		}
	}
	return answer
}
